///sdse_action Body

#ifndef BODY_H
#define BODY_H

#include "physicsServer.h"
#include "bodyMotionState.h"

using namespace sde;

class Body : public Action {
protected:
    PhysicsServer* physicsServer;
    btDiscreteDynamicsWorld* dynamicsWorld;
    btCollisionShape* collisionShape;
    BodyMotionState* motionState;
    btRigidBody* rigidBody;
    
public:
    Body(std::string _type, std::string _name, Object* _object);
    
    virtual void run();
    virtual void stop();
    
    virtual btCollisionShape* makeCollisionShape() {return 0;}
};

#endif
